package com.zyicoding.myfactory.service.impl;

import com.zyicoding.myfactory.dao.SupplierMapper;
import com.zyicoding.myfactory.pojo.Supplier;
import com.zyicoding.myfactory.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public List<Supplier> selectAllSupplier() {
        return supplierMapper.selectList(null);
    }

    @Override
    public Supplier selectSupplierById(Integer id) {
        return supplierMapper.selectById(id);
    }
}
